import { createApp } from 'vue'
import App from './App.vue'

// 引入 element-plus
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// store
import pinia from "../src/store/index.ts";

// 路由
import router from '../src/router/index.ts'

// 引入全局样式
import '@/assets/style.css'


const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router).use(ElementPlus).use(pinia).mount('#app')
